//
//  ViewController.m
//  王宇先_03
//
//  Created by wyx on 16/3/11.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "ViewController.h"
#import "MyLable.h"
#import "MyLable1.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    //title
    MyLable *lableOfTitle = [[MyLable alloc]  initWithFrame:CGRectMake(0, 20, self.view.frame.size.width, 80) text:@"赵雷2014新专辑<<吉姆餐厅>>首发演唱会,北京站"];
    [self.view addSubview:lableOfTitle];
    [lableOfTitle release];
    MyLable *lableOfInFo = [[MyLable alloc]  initWithFrame:CGRectMake(0, 400, self.view.frame.size.width, 80) text:@"活动介绍"];
    [self.view addSubview:lableOfInFo];
    [lableOfInFo release];
    //图片
    UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 90, 200, 300)];
    image.image = [UIImage imageNamed:@"ZQSM5V$))XDUL}4E]FTVC7J.jpg"];
    [self.view addSubview:image];
    [image release];
    MyLable1 *lableOfDate = [[MyLable1 alloc] initWithFrame:CGRectMake(210, 100, self.view.frame.size.width - 210, 20) text:@"10-19 19:00 --10-19 23-30"];
    [self.view addSubview:lableOfDate];
    [lableOfDate release];
    MyLable1 *lableOfName = [[MyLable1 alloc] initWithFrame:CGRectMake(210, 140, self.view.frame.size.width - 210, 20) text:@"赵雷"];
    [self.view addSubview:lableOfName];
    [lableOfName release];
    MyLable1 *lableOfStyle = [[MyLable1 alloc] initWithFrame:CGRectMake(210, 180, self.view.frame.size.width - 210, 20) text:@"类型:音乐"];
    [self.view addSubview:lableOfStyle];
    [lableOfStyle release];
    MyLable1 *lableOfAddress = [[MyLable1 alloc] initWithFrame:CGRectMake(210, 220, self.view.frame.size.width - 210, 40) text:@"北京 东城区 北京市东城区和平里西街79号糖果大楼三层"];
    lableOfAddress.numberOfLines = 2;
    [self.view addSubview:lableOfAddress];
    [lableOfAddress release];
    MyLable1 *lableOfInFoMin = [[MyLable1 alloc] initWithFrame:CGRectMake(0, 480, 310, 80) text:@"【赵雷巡演两千人群241855614】"];
    lableOfInFoMin.numberOfLines = 1;
    [self.view addSubview:lableOfInFoMin];
    [lableOfInFoMin release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
